package com.svse.designPattern.structure.bridge.refined;

import com.svse.designPattern.structure.bridge.service.AbstractionPhone;
import com.svse.designPattern.structure.bridge.service.SoftImplementor;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Copyright 上海危网信息科技有限公司版权所有
 * @company wwsoft
 * @Date 2020/7/31 10:36
 */
public class IphoneRefinedAbstraction extends AbstractionPhone {
    private String brandName;
    public IphoneRefinedAbstraction(String brandName) {
        this.brandName = brandName;
    }
    @Override
    public void run() {
        System.out.println(brandName + "--正在运行软件：");
        for (SoftImplementor soft: getSoftList()) {
            soft.run();
        }
    }

}
